<template>
  <div>
    <div class="title">周末去哪儿</div>
    <ul>
      <li class="item border-bottom" v-for="item of weekend" :key="item.id">
        <div class="item_img">
          <img :src="item.imgUrl" />
        </div>
        <div class="item_info">
          <p class="item_title">{{item.title}}</p>
          <p class="item_desc">{{item.desc}}</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  props: {
    weekend: Array
  }
}
</script>

<style lang="stylus" scoped>
  @import '~styles/mini.styl'
  .title
   background #eee
   line-height .8rem
   text-indent .2rem
  .item
    .item_img
     height 0
     padding-bottom 37.09%
     overflow hidden
     img
      width 100%
    .item_info
     padding .1rem
    .item_title
     line-height .54rem
     font-size .32rem
     ellipis()
    .item_desc
     line-height .4rem
     color #cccccc
     ellipis()
</style>
